package com.fishing.mapper;

import java.util.List;
import java.util.Map;

import com.fishing.entity.Admin;
import com.spring.util.CustomerContextHolder;

public interface AdminMapper {

	int deleteByPrimaryKey(Integer id)throws Exception;

    int insert(Admin record)throws Exception;

    Admin selectByPrimaryKey(Integer id)throws Exception;

    List<Admin> selectAll(Map<String,Object> map)throws Exception;

    int updateByPrimaryKey(Admin record)throws Exception;
    
    int updatePwd(Admin record)throws Exception;
    
    int updateState(Admin record)throws Exception;
    
    int updateForAudit(Admin record)throws Exception;
    
    int selectExist(Admin record)throws Exception;
    
    Admin selectByLoginId(String loginId)throws Exception;
    
    
    Admin selectByOpenIdAndUnionId(Admin record)throws Exception;
    
    int insertByThird(Admin record)throws Exception;
    
}
